package com.yuyang.wifi.dialog;

import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.WindowManager;

import androidx.annotation.Nullable;


/**
 * 公共的dialog, 一般dialog只要继承这个dialog
 * Created by wislie on 2017/9/19.
 */

public class CommonDialog extends BaseDialogFragment {

    @Override
    public boolean hasTitle() {
        return false;
    }

    @Override
    public int getLayoutId() {
        return 0;
    }

    @Override
    public boolean isCancelable() {
        return false;
    }

    @Override
    public void viewCreated(View view, @Nullable Bundle savedInstanceState) {

    }

    @Override
    public int getGravity() {
        return Gravity.CENTER;
    }

    @Override
    public int getWidth() {
        return WindowManager.LayoutParams.WRAP_CONTENT;
    }

    @Override
    public int getHeight() {
        return WindowManager.LayoutParams.WRAP_CONTENT;
    }

    @Override
    public boolean dimAmountIsZero() {
        return false;
    }

    @Override
    public int getX() {
        return 0;
    }

    @Override
    public int getY() {
        return 0;
    }

    @Override
    public int animIn() {
        return 0;
    }

    @Override
    public int animOut() {
        return 0;
    }

    @Override
    public void dismissDialog() {

    }

}
